package com.mobile.driver.services {
   import com.flex.util.proxy.BaseProxy;
   import com.mobile.driver.models.User;
   
   import flash.events.EventDispatcher;
   
   public class LoginService extends BaseProxy {
      private static const SERVICE_NAME:String = "loginService";
      
      public function LoginService() {
         super(SERVICE_NAME);
      }
      
      public function login(
         userNameOrPhone:String,
         password:String,
         param:Object,
         callback:Function = null,
         context:Object = null):void {
         callService("login", [userNameOrPhone, password, param], callback, context);
      }
      
      public function registerUser(
         user:User,
         callback:Function = null,
         context:Object = null):void {
         callService("registerUser", [user], callback, context);
      }
   }
}